import { LayoutEnum } from '@/enums/appEnum'

const routes = [
  {
    path: '/demo',
    component: LayoutEnum.DefaultLayout,
    meta: {
      title: 'demo'
    },
    children: [
      {
        path: '0',
        name: 'Demo',
        component: () => import('@/views/demo/index'),
        meta: {
          requireAuth: false,
          title: '测试页面1',
          affix: true
        }
      },
      {
        path: '1',
        name: 'Demo1',
        component: () => import('@/views/demo/index1'),
        meta: {
          requireAuth: false,
          title: '测试页面2'
        }
      },
      {
        path: '2',
        name: 'Demo2',
        component: () => import('@/views/demo/index2'),
        meta: {
          requireAuth: false,
          title: '测试页面3'
        }
      }
    ]
  }
]

export default routes
